﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Cobit5.Web.Cobit
{
    public partial class GoalITList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int total = BIZ.Cobit.GoalIT.CountAllGoalIT();
            SharedControl.ListPagers myListPagers = new SharedControl.ListPagers(total);
            PlaceHolder_Pagers = myListPagers.GeneratePageLinks(PlaceHolder_Pagers);

            GridView1.DataSource = BIZ.Cobit.GoalIT.GetAllGoalIT("id", myListPagers.IndexStartFrom, myListPagers.IndexStopFrom);
            GridView1.DataBind();   
        }
    }
}